package com.lzs.bootsafety.business.logs.mapper;

import com.github.pagehelper.Page;
import com.lzs.bootsafety.business.logs.entity.SysOperLogs;
import com.lzs.bootsafety.business.logs.entity.SysOperLogsWithBLOBs;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * @author  zhanshi Liu
 * @date    2020/04/15
 * @website www.jhmsona.cn
 */
@Mapper
@Repository
public interface SysOperLogsMapper {

    int deleteByPrimaryKey(Long operId);

    int insert(SysOperLogsWithBLOBs record);

    /**
     * 新增操作日志
     * @param record
     * @return
     */
    int insertSelective(SysOperLogs record);

    /**
     * 查看操作日志详情
     * @param operId
     * @return
     */
    SysOperLogs selectByPrimaryKey(Long operId);

    /**
     * 分业查询操作日志
     * @param sysOperLogs
     * @return
     */
    Page<SysOperLogs> selectOperList(SysOperLogs sysOperLogs);

    int updateByPrimaryKeySelective(SysOperLogsWithBLOBs record);

    int updateByPrimaryKeyWithBLOBs(SysOperLogsWithBLOBs record);

    int updateByPrimaryKey(SysOperLogs record);
}